package com.eatme.core.design.pattern.behavioral.interpreter;

public class NumberInterpreter implements Interpreter{

    private int number;

    public NumberInterpreter(int number) {
        this.number = number;
    }

    public NumberInterpreter(String number) {
        this.number = Integer.valueOf(number);
    }

    @Override
    public int interpret() {

        return this.number;

    }

}
